<template>
    <master :title="title">
        <listpage ref="listpage"></listpage>
    </master>
</template>
<script type="text/javascript">
    (function (G) {
        var _this = null;
        G.vue({
            "usingComponents": {///引入组件
                "master": "/components/Master/Master",///母版组件
                "listpage": "/components/List/Page/Page",///通用列表组件
                "modal":"/components/Modal/Modal"
            },
            "enablePullDownRefresh": true
        },G.modelList({///配置listpage组件
            modelName:'user_action_record',///entity名称
            title:'操作日志',
            listPage(list,query){///query为前一个页面传过来的参数
                list.searchKey = 'userName,type,model'
                list.canCheck = false ///取消选中按钮 同时取消批量删除
                list.canBack = true ///添加返回上一页按钮
                list.actions.add = false ///取消新增按钮
                list.actions.edit.name = '查看详情'
                list.models.createTimeString = {
                    label:'操作时间',
                    type:'input'
                }
            },
            modeleditquery(edit,event,query){///编辑页面 edit对象，event事件，query前一个页面传过来的参数
                edit.readOnly = true
            }
        },{
            data:{
                contentStyle:'',
                show:false
            },
            mounted:function(query){
                _this = this
            }
        }));
    })(Y)
</script>
<style scoped>

</style>